package test.aspect;

import java.io.File;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class LogginAspectDemo {
	public static void main(String[] args) {
		
		try {
		
		String configLocation = System.getProperty("user.dir") + File.separator + "bin"+File.separator +"applicationContext.xml";
	
		ApplicationContext ac = new FileSystemXmlApplicationContext(configLocation);
		TestBean testBean = (TestBean) ac.getBean("test");
		testBean.work();
		testBean.stop();
		
		System.out.println(ac);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}

}
